{{include file="header.html"}}
<body class="login_body">
	<form action="" id="test_form" method="post" autocomplete="off">
	<div class="login_main">
		<div class="login_content">
			<span>毕业生登录</span>
			<!--用户名 -->

			<div class="login_system" >
				<div class='login_system_name' ><span>用户名:</span></div>
				<input type="text" name="username" autocomplete='off' placeholder="  用户名为学号">
			</div>
			
      		<!--密码 -->
			<div class="login_system" >
				<div class='login_system_name'><span>密码:</span></div>
				<input type="password" name="password" placeholder=" 初始密码与学号一致">
			</div>
				
			<!-- 毕业生 管理员 -->
<!-- 			<div class="login_system_choose" >
				<div><input type="radio" value="" name="check" style="height:15px;width:15px;float:clear"><span>毕业生</span></div>
				<div><input type="radio" value="" name="check" checked="checked" style="height:15px;width:15px;float:clear"><span>管理员</span></div>	
			</div> -->
			
			<div class="submit_button" style="float:left">
				<input type="button" name="submit" value="登陆" onclick="login()" style="background-color:#cccccc">
			</div>
			<div style="clear:both;"></div>
		</div>
	</div>
	</form>
<script type="text/javascript">
		//登录验证
	function login(){
	    var params = $("#test_form").serialize();
	    $.post('{{"index.php?app=Login"|URL}}',params,function(result){
	        if(result.statusCode=='200'){
	        	ui.success(result.message);
	        	setTimeout(function(){
	        		if($.cookie('history_url')){
	        			var history_url = $.cookie('history_url');
	        			$.cookie('history_url','',{expires: null,path: "/"});
	        			document.location.href=history_url;
	        		}else{
						var url = '{{"index.php?app=Info&act=modifyinfo"|URL}}'; 
						document.location.href = url;//登录后跳转页面
	        		}
	        	},1000);
	        }else if(result.statusCode=='300'){
	        	ui.error(result.message);
	        }	
	    },'json');
	};
</script>
{{include file="footer.html"}}